home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / TUTORC.ZIP / TCCFILES.ZIP / TCHEADEX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.6 KB  |  63 lines

  1. /*
  2.   tutheade.h
  3.   external decls
  4.   10/30/94 
  5.   SCP
  6.   Adapted from tutprog4.pas, translated into C.
  7.   header file for the Turbo C version of the wormie program.
  8. */
  9.  
  10. #include <stdio.h>
  11. #include <stdlib.h>
  12. #include <dos.h>
  13. #include <math.h>
  14. #include <conio.h>
  15. #include <graphics.h>
  16. #include <bios.h>
  17. #include <string.h>
  18.  
  19. #define VGA 0xa000
  20. #define PI (float) 3.14159
  21.  
  22. struct Point
  23. {
  24.   float x;
  25.   float y;
  26.   float z;
  27. }; 
  28.  
  29. extern char  Virtual[(unsigned)64000];  // Virtual Screen.
  30. extern char  Virtual2[(unsigned)64000];  // Virtual Screen.
  31. extern char far* VirtPtr;
  32. extern char far* VirtPtr2;
  33. extern unsigned int Vaddr;
  34. extern unsigned int Vaddr2;
  35. extern char Pall[256][3];
  36. extern char Pall2[256][3];
  37.  
  38. void SetMCGA();
  39. void SetText();
  40. void WaitRetrace();
  41. void GetPal(char ColorNo, char* R, char* G, char* B);
  42. void Pal(char ColorNo, char R, char G, char B);
  43. void PutPixel(int X, int Y, char Color, int Where);
  44. void Line(int x1, int y1, int x2, int y2, unsigned char Color);
  45. void Line2(int x1, int y1, int x2, int y2, unsigned char Color, int where);
  46. void Funny_Line(int x1, int y1, int x2, int y2, int Where);
  47. void PalPlay();
  48. void rotatepal(char locpal[][3], int start, int end);
  49. void GrabPallette();
  50. void Blackout();
  51. void FadeUp();
  52. void FadeDown();
  53. void RestorePallette();
  54. void Cls(char Color, int Where);
  55. void Flip();
  56. void Flip2(int Source, int Dest);
  57. // int random(int x);
  58. float rad(float theta);
  59. int round(float x);
  60. void SetUpVirtual();
  61. void Hline(int x1, int x2, int y, char col, int where);
  62. void PutPixel2(int x, int y, char col, int where);
  63.